<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>购物订单打印</title>
<style type="text/css" media="print">
.noprint {
	display : none
}
</style>
<style type="text/css" media="screen,print">

#think_run_time,#think_page_trace {
	display:none;	
}
.x-barcode {
	padding:0;
	margin:0
}
body {
	margin:0;
	font-family:Arial, Helvetica, sans-serif;
	font-size:12px;
}
.td_frame {
	padding:5px 0 5px 0;
	border-bottom:2px solid #000000;
}
img {
	padding:2px;
	border:0;
}
p {
	margin:8px 0 8px 0;
}
h1 {
	font-size:16px;
	font-weight:bold;
	margin:0;
}
h2 {
	font-size:14px;
	font-weight:bold;
	margin:0;
}
.table_data_title {
	font-size:14px;
	font-weight:bold;
	height:25px;
}
.table_data_content {
	height:20px;
	line-height:20px;
}
#print_confirm {
	width:100%;
	height:30px;
	border-top:1px solid #999999;
	padding-top:4px;
	background-color:#5473ae;
	position:absolute;
}
#btn_print {
	width:71px;
	height:24px;
	background-image:url(../Public/orders/btn_print.gif);
	cursor:pointer;
	margin-left:auto;
	margin-right:auto;
}
#barcode {
	width:150px; 
	height:50px;
	background:url(../Public/orders/bar_code.gif) no-repeat;
}
#print_address {
	padding-right:5%;
}
</style>
<script type="text/javascript" src="../Public/Js/jquery.js"></script> 
<script language="JavaScript" type="text/javascript">
	$(function(){
		$('#chk_pic_print1').click(function(){
				$(this).attr('checked') && $('img').show() || $('img').hide();
			}
		);
		$('#chk_address').click(function(){
				$(this).attr('checked') && $('#print_address').show() || $('#print_address').hide();
			}
		);
		$('#btn_print').click(function(){
			window.print();
		});
		$('#remove').click(function(){
			var index=$(this).parent().index();
			$(this).parentsUntil('table').children('tr').each(function(i,el){
				$(el).children('td').eq(index).remove();
			});
		});
		$('.removeone').click(function(){
			$(this).parent().parent().hide();
		});
	});
</script>
</head>
<body>
<div id="print1"> </div>
<div id="print2">
  <table class="table_frame" align="center" border="0" cellpadding="0" cellspacing="0" width="90%">
    <tbody>
      <tr>
        <td><table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tbody>
              <tr>
                <td class="td_frame"><table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tbody>
                      <tr>
                        <td width="40%"><table border="0" cellpadding="0" cellspacing="0">
                            <tbody>
                             <tr>
                             <td><img src="{:U('Orders/UPCAbarcode',array('code'=>$shippingInfo['sn']))}" /></td> 
                             </tr>
                            </tbody>
                          </table></td>
                        <td style="font-size: 16pt;"><strong>{$shippingInfo["sn"]}</strong></td>
                        <td><div id="chk_print" class="noprint">
                            <input name="chk_pic_print" id="chk_pic_print1" checked="checked" type="checkbox">
                            <label class="label_pic_print" for="chk_pic_print1">打印图片</label>
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            <input name="chk_address" id="chk_address" checked="checked" type="checkbox">
                            <label class="label_pic_print" for="chk_address">打印配送地址</label>
                          </div></td>
                      </tr>
                      <tr>
                        <td colspan="2" width="70%"><p>订单号<strong>：{$shippingInfo["sn"]}</strong> </p>
                          <p>日期：{:toDate($shippingInfo['dateline'])}</p></td>
                        <td width="30%"><p>客户：{$shippingInfo["delivery_firstname"]} {$shippingInfo["delivery_lastname"]}</p>
                          <p> 电话：{$shippingInfo["delivery_telephone"]}</p></td>
                      </tr>
                    </tbody>
                  </table></td>
              </tr>
            </tbody>
          </table></td>
      </tr>
      <tr>
        <td class="td_frame"><table align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
            <tbody>
              <tr class="table_data_title">
                 <td>No</td>
                <td>ID</td>
                <td>商品图片</td>
                <td>商品名称</td>
                <td>货号</td>
                <td>成本价</td>
                <td>供应商</td>
                <td>单价</td>
                <td>属性</td>
                <td>数量</td>
                <td>小计</td>
                <td align="center">配货状态</td>
                <td><a href="###" id="remove">移出</a></td>
                
              </tr>
               <volist name="list" id="vo" key="key">
              <tr>
                <td>{$key}</td>
                 <td>{$vo.products_id}</td>
                 <td><img class="product" src="__ROOT__/{$vo.bigimage}" align="absmiddle" height="60" width="60"></td> 
                <td>{$vo.products_name}</td>
                <td>{$vo.serial}</td>
                <td>{$vo.costprice}</td>
                <td>{$vo.provider}</td>
                 <td>{$shippingInfo.currencies_code}{$vo.price}</td>
                <td> <volist name="vo['products_model']" id="subvo">
					{$subvo['name']}:{$subvo['value']}<br/>

</volist></td>
                <td>{$vo.products_quantity}</td>
                <td>{$shippingInfo.currencies_code}{$vo.products_total}</td>
                <td align="center"><div style="height: 10pt; width: 10pt; border: 1pt solid rgb(0, 0, 0);"></div></td>
                 <td><a href="###" class="removeone">移出</a></td>
              </tr>
              </volist>
            </tbody>
          </table></td>
      </tr>
      <tr>
        <td><table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
            <tbody>
              <tr>
                <td style="height: 150px;" valign="top" width="50%">
                  <p>备注：</p>{$shippingInfo.BuyNote}</td>
                <td valign="top" width="50%" align="right"><div id="print_address">
                    <p>收货人：{$shippingInfo["delivery_lastname"]} {$shippingInfo["delivery_firstname"]}</p>
                    <p>电　话：{$shippingInfo["delivery_telephone"]}</p>
                    <p>地　址：{$shippingInfo["delivery_address"]}</p>
                    <p>邮　编：{$shippingInfo["delivery_zip"]}</p>
                    <p>城　市：{$shippingInfo["delivery_city"]}</p>
                    <p>省　份：{$shippingInfo["delivery_state"]}</p>
                    <p>国　家：{$shippingInfo["delivery_country"]}</p>
                  </div></td>
              </tr>
            </tbody>
          </table></td>
      </tr>
      <tr>
        <td style="height: 50px;"><h1>签字：</h1></td>
      </tr>
     
    </tbody>
  </table>
</div>
<div  id="print_confirm" class="noprint">
  <div id="btn_print"></div>
</div>
</body>
</html>